<template>
  <iframe-component :url="url"/>
</template>

<script>
import IframeComponent from '../components/IframeComponent'
export default {
  components: {IframeComponent},
  data() {
    return {
      url: decodeURIComponent(this.$route.query.url)
    }
  },
  created() {
    // this.url = decodeURIComponent(this.$route.query.url);
  },
  watch: {
    '$route.query': {
      handler(n) {
        this.url = decodeURIComponent(n.url)
      }
    },
    deep: true
  }
}
</script>

<style>

</style>